-- GENERATED SPELL FOR [Chieftain Mummaki] --


function spell0_19174(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(7159,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19174', 577, 1)
end

function spell1_19174(pUnit, Event) --@Vanish,Self--
pUnit:FullCastSpellOnTarget(35205,pUnit)
pUnit:RegisterEvent('Sorts_19174', 7000, 1)
end

function Sorts_19174(pUnit, Event)
local choix_sorts_19174 = math.random(0, 1)
if choix_sorts_19174 == 0 then
pUnit:RegisterEvent('spell0_19174', 1, 1)
end
if choix_sorts_19174 == 1 then
pUnit:RegisterEvent('spell1_19174', 1, 1)
end
end

function mob19174_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19174', math.random(1500, 3000), 1)
end

function mob19174_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19174_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19174_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19174, 1, 'mob19174_Action')
RegisterUnitEvent(19174, 2, 'mob19174_Leave')
RegisterUnitEvent(19174, 3, 'mob19174_Kill')
RegisterUnitEvent(19174, 4, 'mob19174_Die')
